
<h1>Vendedores</h1>

<div class="bs-old-docs">
  <div class="container">
    <?php echo $this->Html->link('  Agregar Vendedor', array('controller' => 'Sellers', 'action' => 'add'),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); ?>
   
  </div>
</div>


<table class="table table-striped">
    <tr>
        <th>Nombre</th>
        <th>Apellido</th>
        <th>Telefono</th>
        <th></th>
    </tr>
    <?php foreach ($sellers as $seller): ?>
    <tr>
        <td><?php echo $this->Html->link($seller['Seller']['nombre'], array('controller' => 'sellers', 'action' => 'view', $seller['Seller']['id'])); ?> </td>
        <td><?php echo $seller['Seller']['apellido']; ?></td>
        <td><?php echo $seller['Seller']['telefono']; ?></td>
        <td><?php echo $this->Html->link('', array('controller' => 'Sellers', 'action' => 'edit', $seller['Seller']['id']), array('class' => 'glyphicon glyphicon-pencil')); ?>
       		<?php echo $this->Html->link('', array('action' =>'delete',$seller['Seller']['id']), array('class' => 'glyphicon glyphicon-trash'), 'Esta seguro que quiere eliminar este registro?' )?></td>
        
    </tr>

    <?php endforeach; ?>
    <?php unset($seller);   ?>

</table>

<?php echo  $this->Html->link('  Volver', array('controller' => 'pages'), array('class' => 'glyphicon glyphicon-chevron-left btn btn-primary btn-lg' )) ?>